﻿<%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="ThemPhuKienDT.aspx.cs" Inherits="ThemPhuKienDT" Title="Thêm phụ kiện điện thoại" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp; Thêm Phụ Kiện Điện Thoại</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align: left; min-height:500px">
 <br />
    <table style="width:1000;text-align:left" align="center" cellpadding="5" 
            cellspacing="0">
        <tr>
            <td >
                    Tên phụ kiện:</td>
            <td width="300"  >
                <asp:TextBox ID="txttenpk" runat="server" meta:resourcekey="txttenResource1"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txttenpk" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
            <td>
                    Thiết bị sử dụng:</td>
            <td>
                <asp:TextBox ID="txtthietbisudung" runat="server" 
                    meta:resourcekey="txtmanghinhResource1"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtthietbisudung" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                    Giá:</td>
            <td>
                <asp:TextBox ID="txtgia" runat="server" meta:resourcekey="txtkieuResource1"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtgia" ErrorMessage="( * )"></asp:RequiredFieldValidator>
&nbsp;<asp:Label ID="Label3" runat="server" ForeColor="Red" Text="Label"></asp:Label>
            </td>
            <td>
                    Chức năng:</td>
            <td>
                <asp:TextBox ID="txtchucnang" runat="server" 
                    meta:resourcekey="txtcameraResource1"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtchucnang" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                    Xuất xứ:</td>
            <td>
                <asp:TextBox ID="txtxuatxu" runat="server" 
                    meta:resourcekey="txtkichthuocResource1"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtxuatxu" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
            <td>
                    Hình ảnh:</td>
            <td>
                <asp:FileUpload ID="FileUploadHinh" runat="server" 
                    meta:resourcekey="FileUploadsmallResource1" />
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="FileUploadHinh" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                    Bảo hành:</td>
            <td>
                <asp:TextBox ID="txtbaohanh" runat="server" 
                    meta:resourcekey="txttrongluongResource1"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtbaohanh" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
            <td>
                    Loại Phụ kiện: 
            </td>
            <td>
                <asp:DropDownList ID="drploaipk" runat="server"
                        DataTextField="tenloai" DataValueField="maloai" AutoPostBack="True">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td valign="top">
                                            Ngày đăng:</td>
            <td>
                <asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
            </td>
            <td valign="top">
                    Thông tin chi tiết:
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ControlToValidate="txtgia" ErrorMessage="( * )"></asp:RequiredFieldValidator>
            </td>
            <td style="text-align: left" valign=top>
                <asp:TextBox ID="txtthongtin" runat="server" TextMode="MultiLine" Width="300" 
                        Height="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top" colspan="4" style="text-align: center">
                                            <asp:Button ID="btnluu" runat="server" onclick="btnluu_Click" 
                                                Text="Lưu Thông Tin" />
&nbsp;<asp:Button ID="btnlamlai" runat="server" Text="Làm lại" CausesValidation="False" />
&nbsp;</td>
        </tr>
    </table>
    </div>
</asp:Content>

